<!-- NewTrainStudy_win.html -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/html-base.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/public-train.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/train.css"/>
</head>
<body>
	<header class="header">
		<ul class="navlevel1">
			<li id="nav_item0" index="0" class="active"><span>培训班</span></li>
			<li id="nav_item1" index="1"><span>线上课程</span></li>
		</ul>
	</header>
</body>
<script type="text/javascript" src="../../script/newresize.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/jquery.min.js"></script>
<script type="text/javascript" src="../../script/mui.min.js"></script>
<script type="text/javascript">
	$(function(){
		$(".navlevel1 li").on("click",function(){
			$(".navlevel1 li").removeClass("active");
			$(this).addClass("active");
			var index = parseInt($(this).attr('index'));
			api.setFrameGroupIndex({
			    name: 'NewTrainStudyFrameGroup',
			    index: index,
			    scroll: true
			});
		})
	})
	apiready = function(){
	     setupSubFrameGroup();
	}
	function setupSubFrameGroup(){
		var y = $('.header').height();
		var h = api.winHeight - y - 52;
		api.openFrameGroup({
		    name: 'NewTrainStudyFrameGroup',
		    rect: {
		         x: 0, 
		         y: y, 
		         w: 'auto',
		         h: h
		    },
		    scrollEnabled: true,
		    frames: [{
		        name: 'NewTrainStudy_frame', 
		        url: 'NewTrainStudy_frame.html',
		        pageParam: {
		            cate: 111
		        }
		    },{
		        name: 'NewTrainStudy_frame', 
		        url: 'NewTrainStudy_frame.html',
		        pageParam: {
		            cate: 112
		        }
		    }]
		}, function(ret, err) {
		    $(".navlevel1 li").removeClass("active");
		    var index = ret.index;
		    $('#nav_item'+index).addClass("active");
		});
		api.setFrameGroupAttr({
		    name: 'NewTrainStudyFrameGroup',
		    hidden: true
		});
	}
	    
</script>
</html>
